package com.ustc.hewei.nettyrpc2_0.common.enumeration;

import lombok.AllArgsConstructor;

/**
 * @author hewei
 * @version 1.0
 * @description: 错误的类型
 * @date 2022/9/5 20:12
 */

@AllArgsConstructor
public enum RpcError {

    UNKNOWN_PROTOCOL("未知的协议包"),
    UNKNOWN_PACKAGE("未知的包的类型"),
    UNKNOWN_SERIALIZER("未知的序列化方式"),
    FAILURE_CONNECT("连接失败"),
    NO_AVAILABLE_PROVIDE("没有可用的服务提供者"),
    UNKNOWN_RESPONSE("未知的服务端响应"),
    BUILD_SINGLETON_EXCEPTION("创建单例异常"),
    UNFOUNDED_SERVICE("找不到对应服务"),
    UNKNOWN_FULL_CLASSNAME("获取不到全类名"),
    RETRIED_TIMEOUT("重试服务超过指定次数"),
    FAIL_TO_SEND_REQUEST("发送请求失败"),
    UNFOUNDED_INTERFACE_IMPLEMENT("找不到接口的实现类"),
    INACTIVE_HANDLER("handler失效"),
    UNKNOWN_CLASSPATH("未知的类的全限定名");

    private final String massage;

    public String getMassage() {
        return massage;
    }
}
